aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-08-14 22:32:58 -0700
committerAdam Soltys <[email protected]>2023-08-14 22:32:58 -0700
commit1d55903cce0d1914ec21ff31d8ae2b4dcb4fa64d (patch)
tree090f3941fccc4a7532fe703a2b6eea313061ad5d /src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
parent1de7b98a219fc3872aa6218e7e9e78ab56803d5e (diff)
downloadcoinos-ui-1d55903cce0d1914ec21ff31d8ae2b4dcb4fa64d.tar.gz
coinos-ui-1d55903cce0d1914ec21ff31d8ae2b4dcb4fa64d.zip
more options link for using external wallets
Diffstat (limited to 'src/routes/(app)/[username]/invoice/[hash]/+layout.server.js')
-rw-r--r--src/routes/(app)/[username]/invoice/[hash]/+layout.server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
index 875c4e11..eef24555 100644
--- a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
+++ b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
@@ -9,7 +9,7 @@ export async function load({ depends, params, url, parent }) {
let { hash } = params;
let invoice = await get(`/invoice/${hash}`);
- if (user && invoice.uid !== user.id && !url.pathname.includes('tip'))
+ if (user && invoice.uid !== user.id && !url.pathname.includes('tip') && !url.searchParams.get('options'))
throw redirect(307, `/send/invoice/${hash}`);
let { amount, pending, received } = invoice;